.workflow-editor {
  width: 100%;
  height: 100vh;
  background: #f9f9fc;
}

.workflow-editor__container {
  width: 100%;
  height: calc(100vh - 64px);
  position: relative;
}

.workflow-editor__sidebar {
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background: white;
  z-index: 10;
  box-shadow: -2px 0 4px rgba(0, 0, 0, 0.1);
  padding: 16px;
  overflow-y: auto;
}

.workflow-editor__node {
  padding: 16px;
  border-radius: 8px;
  background: white;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  min-width: 180px;
  transition: all 0.3s ease;
}

.workflow-editor__node:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.workflow-editor__node-header {
  margin-bottom: 12px;
  font-weight: 600;
  color: #333;
}

.workflow-editor__node-content {
  font-size: 13px;
  color: #666;
}

.workflow-editor__handle {
  width: 10px;
  height: 10px;
  background: #3f51b5;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

.workflow-editor__toolbar {
  padding: 12px 24px;
  background: white;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.workflow-editor__minimap {
  position: absolute;
  bottom: 24px;
  right: 24px;
  z-index: 5;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid #e0e0e0;
}

.workflow-editor__controls {
  position: absolute;
  bottom: 24px;
  left: 24px;
  z-index: 5;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.workflow-editor .react-flow__node {
  font-size: 13px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.workflow-editor .react-flow__node:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.workflow-editor .react-flow__edge {
  stroke: #555;
  stroke-width: 2;
  transition: stroke 0.3s ease;
}

.workflow-editor .react-flow__edge-path {
  stroke: #555;
  stroke-width: 2;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.1));
}

.workflow-editor .react-flow__edge-text {
  font-size: 12px;
  font-weight: 500;
}

.workflow-editor .react-flow__node-custom {
  padding: 14px;
  background: white;
  border: 2px solid #3f51b5;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.workflow-editor .react-flow__node-custom:hover {
  box-shadow: 0 8px 16px rgba(63, 81, 181, 0.2);
  transform: translateY(-2px);
}

.workflow-editor .react-flow__handle {
  width: 10px;
  height: 10px;
  background: #3f51b5;
  border: 2px solid #fff;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

.workflow-editor .react-flow__handle:hover {
  background: #303f9f;
}

/* 添加流程图连线动画效果 */
.workflow-editor .react-flow__edge-path {
  stroke-dasharray: 5;
  animation: flowAnimation 30s linear infinite;
}

@keyframes flowAnimation {
  to {
    stroke-dashoffset: -1000;
  }
}

/* 添加对画布的样式优化 */
.react-flow__pane {
  background-image: radial-gradient(#e0e0e0 1px, transparent 1px);
  background-size: 20px 20px;
} 